package com.pagoamigo.domain;

import javax.persistence.ManyToOne;
import javax.validation.constraints.NotNull;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooJpaActiveRecord(finders = { "findPaymentsByReceiver", "findPaymentsBySender" })
public class Payment {

    @ManyToOne
    private Account sender;

    @ManyToOne
    private Account receiver;

    @NotNull
    private Float amount;
}
